%h1 Campaign Adverts
%table
  %tr
    %th Campaign
    %th Advert
    %th Page Location
    %th Operations
  -for campaign_advert in @campaign_adverts
    %tr
      %td= link_to campaign_advert.campaign.name, [:admin,campaign_advert.campaign] 
      %td= link_to campaign_advert.advert.name, [:admin,campaign_advert.advert]
      %td= campaign_advert.page_location
      
      %td=link_to "Remove", [:admin,campaign_advert], :method=>:delete, :confirm=>"Are you sure you want to delete this association?"
  
%h2 Operations
%p=link_to "Create new Campaign Advert", new_admin_campaign_advert_url